<?php
$this->breadcrumbs=array(
	'Purchase Requisitions'=>array('index'),
	$model->id,
);
?>

<h1>View PurchaseRequisition #<?php echo $model->id; ?></h1>
<hr />
<?php 
$this->beginWidget('zii.widgets.CPortlet', array(
	'htmlOptions'=>array(
		'class'=>''
	)
));
$this->widget('bootstrap.widgets.TbMenu', array(
	'type'=>'pills',
	'items'=>array(
		array('label'=>'Create', 'icon'=>'icon-plus', 'url'=>Yii::app()->controller->createUrl('create'), 'linkOptions'=>array()),
                array('label'=>'List', 'icon'=>'icon-th-list', 'url'=>Yii::app()->controller->createUrl('index'), 'linkOptions'=>array()),
                array('label'=>'Update', 'icon'=>'icon-edit', 'url'=>Yii::app()->controller->createUrl('update',array('id'=>$model->id)), 'linkOptions'=>array()),
		//array('label'=>'Search', 'icon'=>'icon-search', 'url'=>'#', 'linkOptions'=>array('class'=>'search-button')),
		array('label'=>'Print', 'icon'=>'icon-print', 'url'=>'javascript:void(0);return false', 'linkOptions'=>array('onclick'=>'printDiv();return false;')),

)));
$this->endWidget();
?>
<div class='printableArea'>

<?php $this->widget('bootstrap.widgets.TbDetailView',array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'purchase_requisition_number',
		'trans_date',
		'id_section',
		'note',
		'id_parts',
		'part_name',
		'part_description',
		'part_specs',
		'qty',
		'uom',
		'expected_received_date',
		'remarks',
		'status',
		'created',
		'created_by',
		'modified',
		'modified_by',
		'budget_number',
		'revised_from',
		'app1_by',
		'app1_date',
		'app2_by',
		'app2_date',
		'app3_by',
		'app3_date',
		'app4_by',
		'app4_date',
		'app5_by',
		'app5_date',
		'app6_by',
		'app6_date',
		'part_code',
		'price',
		'currency',
		'status_po',
		'supplier_code',
		'reject_date',
		'pending_date',
		'budget_price',
		'data_reject_remark',
	),
)); ?>
</div>
<style type="text/css" media="print">
body {visibility:hidden;}
.printableArea{visibility:visible;} 
</style>
<script type="text/javascript">
function printDiv()
{

window.print();

}
</script>
